package com.csc.banking.dao;

import java.util.List;

import javax.persistence.TypedQuery;

import org.springframework.stereotype.Component;
import com.csc.banking.model.TransactionAction;

@Component
public class TransactionActionDao extends GenaricDao 
{
	@Override
	Class<?> getEntityClass() 
	{
		return TransactionAction.class;
	}
	
	public List<TransactionAction> getAllTransactionActions()
	{
    	TypedQuery<TransactionAction> query = em.createQuery(
            "SELECT g FROM TransactionAction g ORDER BY g.transactionActionId", TransactionAction.class);
    	return query.getResultList();
    }
}